package com.zlp.dto.resource;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zlp.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "资源位基础返回参数")
public class ResourceBaseResp implements Serializable {


    @ApiModelProperty(value = "跳转类型(10:商品;20:文章;30:活动;40:链接)")
    private Integer jumpType;

    @ApiModelProperty(value = "跳转商品ID或文章ID或活动ID")
    private String jumpObjId;

    @ApiModelProperty(value = "链接地址")
    private String linkUrl = "http://www.baidu.com";

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "展示开始时间")
    private Date displayStartTime = DateUtil.getCurrentTime();

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "展示结束时间")
    private Date displayEndTime = DateUtil.getCurrentTime();

}